import request from '@/utils/request'

// 查询完善度信息列表
export function listPerfection(query) {
  return request({
    url: '/kycinfo/perfection/list',
    method: 'get',
    params: query
  })
}

// 查询完善度信息详细
export function getPerfection(perfectionId) {
  return request({
    url: '/kycinfo/perfection/' + perfectionId,
    method: 'get'
  })
}

// 新增完善度信息
export function addPerfection(data) {
  return request({
    url: '/kycinfo/perfection',
    method: 'post',
    data: data
  })
}

// 修改完善度信息
export function updatePerfection(data) {
  return request({
    url: '/kycinfo/perfection',
    method: 'put',
    data: data
  })
}

// 删除完善度信息
export function delPerfection(perfectionId) {
  return request({
    url: '/kycinfo/perfection/' + perfectionId,
    method: 'delete'
  })
}
